<?php /*a:1:{s:68:"D:\phpStudy\WWW\learning_tp5\application/index/view\demo7\test4.html";i:1534080124;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title><?php echo htmlentities((isset($title) && ($title !== '')?$title:'张虎中文网')); ?></title>
    <link rel="stylesheet" href="/public/static/css/bootstrap.min.css">
    <script src="/public/static/js/jquery-3.3.1.min.js"></script>
    <script src="/public/static/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-ml-2"></div>
        <div class="col-ml-8">
            <h2 class="text-center">学生信息表</h2>
            <table class="table table-default table-bordered table-hover text-center"><tr class="bg-primary">
                <td>id</td>
                <td>姓名</td>
                <td>密码</td>
                <td>地址</td>
                <td>手机</td>
            </tr>
                <?php if(is_array($data2) || $data2 instanceof \think\Collection || $data2 instanceof \think\Paginator): $i = 0; $__LIST__ = $data2;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?>
                <tr>
                    <td>
                        <?php if($list['id'] > 5): ?>
                        <span style="color: #2b542c;"><?php echo htmlentities($list['id']); ?>不及格</span>
                        <?php else: ?>
                        <span style="color: #8a6d3b;"><?php echo htmlentities($list['id']); ?>合格</span>
                        <?php endif; ?>
                    </td>
                    <td><?php echo htmlentities($list['username']); ?></td>
                    <td><?php echo htmlentities($list['password']); ?></td>
                    <td><?php echo htmlentities($list['address']); ?></td>
                    <td><?php echo htmlentities($list['telphone']); ?></td>
                </tr>
                <?php endforeach; endif; else: echo "" ;endif; ?></table>
        </div>
        <div class="col-ml-2"></div>
        <div class="text-center"><?php echo $data2; ?></div>
    </div>
</div>
</body>
</html>